{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": [
    "# Generate some heatmaps\n",
    "import matplotlib.pyplot as plt\n",
    "%matplotlib inline\n",
    "import numpy as np"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "image/png": "iVBORw0KGgoAAAANSUhEUgAAASQAAAD8CAYAAADe49kaAAAABHNCSVQICAgIfAhkiAAAAAlwSFlzAAALEgAACxIB0t1+/AAADuhJREFUeJzt3X+oX/V9x/HXa1nUbioqpuFqYu0f0uKERri4QvaHs7hltlT7j+ioWCqksAmRCZ3tP3bIQFjn+k8Z3FYxUGeRaamIaxdsuiB0zhub2fywKKI04db00nVGxsxiXvvje8Justz7Pd/cc77nc+55PuBLvt/v/d7PfXNJXnmfzzmf83ESAUAJfqvrAgDgFAIJQDEIJADFIJAAFINAAlAMAglAMQgkAKtie7Pt3bYP2j5ge0f1/tdsH7G9r3rcMnYsrkMCsBq2ZyTNJHnF9kWS9kq6TdLtkt5L8vW6Y/12SzUCGIgkC5IWqufHbB+SdOW5jNVKh2Q7fTkWXN91ARM6r+sCJtSnevv0d+E/Jf1X4tWMsW3btiwuLtb67N69ew9I+u8lb80lmTvzc7avlrRH0nWS/kLSFyS9K2le0v1J/mOln9NKIK2zc0Hjo7bjiq4LmNDmrguYUJ/q7dPfhcclLawykGZnZzM/P1/rs7b3Jpkd85kLJf2LpL9O8oztjZIWJUXSQxod1n1xpTE4ZAMGK5JONDKS7fWSnpb0RJJnJCnJO0u+/i1Jz40bh0ACBis6/Sjs3Ni2pEclHUryyJL3Z6r5JUn6nKT948YikIDBaqxD2irpLkk/s72veu+rku60vaX6QW9J+tK4gQgkYLCaCaQkL0o623zW85OORSABg9XcHFJTCCRgsAgkAEUhkAAU4aSk97su4jQEEjBYHLIBKAqBBKAIdEgAikEgASjGSTWxdKRJBBIwaHRIAIrAIRuAYhBIAIpRXiDVutO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ZTkakl3SPoRYQT0X8N3jGwE1yEBA9X7pSNJfizpx61UAmDqSjtko0MCBoqNIgEUhQ4JQBHokAAUhQ4JQBF6f5YNwNrB/ZAAFINAAlAUJrUBFIEOCUBR6JAAFCGSjnddxBkIJGCguDASQFGYQwJQBCa1ARSFQzYARShx6YiTND+o/StJbzc87OWSFhses019qrdPtUr9qretWj+SZMNqBrD9A43qq2MxybbV/Lw6WgmkNtieTzLbdR119anePtUq9avePtVagtpbaQNA2wgkAMXoUyDNdV3AhPpUb59qlfpVb59q7Vxv5pAArH196pAArHEEEoBi9CKQbG+z/XPbb9h+oOt6VmL7MdtHbe/vupZxbG+2vdv2QdsHbO/ouqbl2L7A9r/Z/veq1r/quqY6bK+z/VPbz3VdSx8UH0i210n6pqQ/kXStpDttX9ttVSt6XFLrF5A15ISk+5NcK+mTkv684N/t+5JuSvIJSVskbbP9yY5rqmOHpENdF9EXxQeSpBskvZHkzSTHJX1X0q0d17SsJHsk/brrOupIspDkler5MY3+4VzZbVVnl5H3qpfrq0fRZ2Rsb5L0aUnf7rqWvuhDIF0p6RdLXh9Wof9o+sz21ZKul/RSt5Usrzr82SfpqKRdSYqttfINSV9WeWtYi9WHQELLbF8o6WlJ9yV5t+t6lpPkgyRbJG2SdIPt67quaTm2PyPpaJK9XdfSJ30IpCOSNi95val6Dw2wvV6jMHoiyTNd11NHkt9I2q2y5+q2Svqs7bc0mma4yfZ3ui2pfH0IpJclXWP7o7bPk3SHpGc7rmlNsG1Jj0o6lOSRrutZie0Nti+pnn9I0s2SXuu2quUl+UqSTUmu1ujv7I+SfL7jsopXfCAlOSHpXkk/1GjS9akkB7qtanm2n5T0E0kfs33Y9j1d17SCrZLu0uh/733V45aui1rGjKTdtl/V6D+pXUk4lb7GsHQEQDGK75AADAeBBKAYBBKAYhBIAIpBIAEoBoEEoBgEEoBi/C+otIAxM5vjCAAAAABJRU5ErkJggg==\n",
      "text/plain": [
       "<matplotlib.figure.Figure at 0x10b71f4e0>"
      ]
     },
     "metadata": {},
     "output_type": "display_data"
    }
   ],
   "source": [
    "# simple heatmap\n",
    "a = np.linspace(1,25,25).reshape((5,5))\n",
    "plt.imshow(a, cmap='hot', interpolation='nearest')\n",
    "plt.colorbar(ticks=[0,5,10,15,20,25])\n",
    "#plt.show()\n",
    "plt.savefig(\"images/heatmap.png\")"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {
    "collapsed": true
   },
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.6.7"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 2
}
